import cv2

img = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\Camera Roll\\kc.jpg")
# 上下反转
new1 = cv2.flip(img,0)
# 左右反转
new2 = cv2.flip(img,1)
# 上下左右都反转
new3 = cv2.flip(img,-1)
cv2.imshow('img',img)
cv2.imshow('new1',new1)
cv2.imshow('new2',new2)
cv2.imshow('new3',new3)
cv2.waitKey(0)